home *** CD-ROM | disk | FTP | other *** search
/ IRIX 5.3 for Indy R4400 / IRIX 5.3 for Indy R4400 175MHz.img / dist / eoe2.idb / usr / lib / acct / shutacct.z / shutacct
Text File  |  1995-02-28  |  743b  |  21 lines

  1. #!/sbin/sh
  2. #    Copyright (c) 1993 UNIX System Laboratories, Inc.
  3. #      All Rights Reserved
  4.  
  5. #    THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF
  6. #    UNIX System Laboratories, Inc.       
  7. #    The copyright notice above does not evidence any
  8. #    actual or intended publication of such source code.
  9.  
  10. #    copyright    "%c%"
  11.  
  12. #ident    "@(#)acct:common/cmd/acct/shutacct.sh    1.6.1.4"
  13. #ident "$Header: /proj/irix5.3/isms/irix/cmd/acct/RCS/shutacct.sh,v 1.3 1993/11/05 04:28:14 jwag Exp $"
  14. #    "shutacct [arg] - shuts down acct, called from /usr/sbin/shutdown"
  15. #    "whenever system taken down"
  16. #    "arg    added to /var/adm/wtmp to record reason, defaults to shutdown"
  17. PATH=/usr/lib/acct:/bin:/usr/bin:/etc
  18. _reason=${1-"acctg off"}
  19. acctwtmp  "${_reason}"  >>/var/adm/wtmp
  20. turnacct off
  21.